export default {
  title: '应用注册',
  grid: true,
  labelWidth: '140px',
  actions: [
    { type: 'primary', label: '提交', event: 'onSubmit' },
    { type: '', label: '重置', event: 'onReset' }
  ],
  fields: [
    {
      type: 'title',
      prop: 'title',
      label: '测试环境',
      props: {
        display: 'block',
        fontSize: '18px',
        fontWeight: 'bold',
        marginBottom: '10px'
      }
    },
    {
      type: 'el-input',
      required: true,
      label: '应用名称',
      prop: 'name',
      width: '33.33%',
      desc: { left: true, text: '字段备注信息' }
    },
    {
      type: 'el-input',
      required: true,
      label: '应用code',
      prop: 'code',
      width: '33.33%',
      desc: '字段备注信息'
    },
    {
      type: 'el-select',
      label: '用户数量',
      required: true,
      prop: 'count',
      width: '33.33%',
      options: [
        { label: '0~10人', value: '1' },
        { label: '10~100人', value: '2' },
        { label: '100人以上', value: '3' }
      ]
    },
    {
      type: 'el-input',
      required: true,
      label: '应用管理员',
      prop: 'leader',
      width: '33.33%'
    },
    {
      type: 'el-input',
      required: true,
      label: '应用接口人',
      prop: 'creater',
      width: '33.33%'
    },
    {
      type: 'el-input',
      required: true,
      label: '应用回调地址',
      prop: 'callback',
      width: '33.33%'
    },
    {
      type: 'el-checkbox-group',
      required: true,
      label: '',
      prop: 'cccc',
      props: {
        display: 'block'
      },
      options: [
        { label: '完成用户同步', value: 1 },
        { label: '完成应用账号绑定', value: 2 },
        { label: '完成单点登录对接', value: 3 },
        { label: '关闭应用登录入口', value: 4 }
      ]
    },
    {
      type: 'download',
      label: '附件',
      prop: 'testdoc',
      default: [{ name: '测试环境接口文档.pdf', fileId: '1657413216549879' }]
    },
    {
      type: 'title',
      prop: 'title',
      label: '生产环境',
      props: {
        display: 'block',
        fontSize: '18px',
        fontWeight: 'bold',
        marginBottom: '10px'
      }
    },
    {
      type: 'el-input',
      required: true,
      label: '应用名称',
      prop: 'prodName',
      width: '33.33%'
    },
    {
      type: 'el-input',
      required: true,
      label: '应用code',
      prop: 'prodCode',
      width: '33.33%'
    },
    {
      type: 'el-select',
      label: '用户数量',
      required: true,
      prop: 'prodcount',
      width: '33.33%',
      options: [
        { label: '0~10人', value: '1' },
        { label: '10~100人', value: '2' },
        { label: '100人以上', value: '3' }
      ]
    },
    {
      type: 'el-input',
      required: true,
      label: '应用管理员',
      prop: 'prodleader',
      width: '33.33%'
    },
    {
      type: 'el-input',
      required: true,
      label: '应用接口人',
      prop: 'prodcreater',
      width: '33.33%'
    },
    {
      type: 'download',
      label: '附件',
      prop: 'proddoc',
      default: [{ name: '生产环境接口文档.pdf', fileId: '1657413216549879' }]
    }
  ]
};
